object wordCount{
	def main(args: Array[String]): Unit = {
	  val conf = new SparkConf().setMaster("local").setAppName("wordCount")
	  conf.set("spark.testing.memory","2147480000")
	  val data = new SparlContext(conf)
	  val data = sc.textFile("C://wc.txt")
	  data.flatMap(_.split(" ")).map((_,1)).reduceByKey(_+_).collect().foreach(println)
	}
	
}